<template>
 
 <div class="layui-form-item">
    <label class="layui-form-label">{{title}}</label>
    <div class="layui-input-block">
        <input :type="type" :name="name" :placeholder="'请输入'+title" autocomplete="off" class="layui-input">
    </div>
  </div>

</template>

<script>
export default {
    props:{
        title:{
            default:'选择框'
        },
        name:{
          default:"name"
        },
        value:{
            default:"text"
        },
        type:{
             default:"text"
        },
        isMust:{
             default:false
        },
        layVerify:{
             default:""
        }
    },
    created(){
        var isRequired = "";
        if(!this.isMust){
            isRequired = "";
        }else{
            isRequired = "required";
        }
       
        var separateSign = this.layVerify==""? "":"|"+this.layVerify;
        this.layVerify =isRequired+separateSign;
    },
   mounted(){
    
   },
   methods:{
    
   }
}
</script>

<style lang="scss">

</style>
